<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Document</title>
<link rel="stylesheet" href="/Public/css/reset.css">
<link rel="stylesheet" href="/Public/css/adm.css">
</head>
<body>
    <header>
        <h1>Blog后台管理界面</h1>
    </header>
         <div id="main"> 
        <div id="lside">
            <aside>
                <h4>栏目管理</h4>
                <ul>
                    <li><a href="<?php echo U('admin/cat/catlist');?>">栏目列表</a></li>
                    <li><a href="<?php echo U('admin/cat/catadd');?>">添加栏目</a></li>
                </ul>
            </aside>
            <aside>
                <h4>文章管理</h4>
                <ul>
                    <li><a href="<?php echo U('admin/art/artlist');?>">文章列表</a></li>
                    <li><a href="<?php echo U('admin/art/artadd');?>">添加文章</a></li>
                </ul>
            </aside>
            <aside>
                <h4>怎么走？</h4>
                <ul>
                    <li><a href="<?php echo U('home/index/index');?>">首页</a></li>
                    <li><a href="<?php echo U('home/index/logout');?>">退出登陆</a></li>
                </ul>
            </aside>
        </div>

        <div id="rside">
            <table>
                <tr>
                    <td>序号</td>
                    <td>栏目名称</td>
                    
                    <td>操作</td>
                </tr>
                <?php if(is_array($list)): foreach($list as $key=>$data): ?><tr>
                    <td><?php echo ($data['cat_id']); ?></td>
                    <td><?php echo ($data['catname']); ?></td>
                    
                    <td><a href="<?php echo U('admin/cat/catdel',array('cat_id'=>$data['cat_id']));?>">删除</a>|<a href="<?php echo U('admin/cat/catupdate',array('cat_id'=>$data['cat_id']));?>">修改</a></td>
                </tr><?php endforeach; endif; ?>
            </table>
        </div>
    </div>
    <footer>
        Copyright &copy; 2015 · GeneratePress · WordPress
    </footer>
</body>
</html>